import request from '@/utils/request'
let baseURL = '/portal-server/v1/api'

/**
 * 获取两算一控报表
 */
export const queryReportListApi = (data) => {
	return request({
		url: `${baseURL}/calculagte/twoControReport`,
		method: 'post',
    data
	})
};
// 获取全部项目列表
export const queryAllProjectListApi = (data) => {
	return request({
		url: `${baseURL}/calculagte/twoControReportProject`,
		method: 'post',
		data
	})
};

// 根据业态获取产品线
export const queryProductLineByBizTypeApi = (zdBusCodeList) => {
	return request({
		url: `/budget/inventorySon/productLineList?zdBusCodeList=${zdBusCodeList}`,
		method: 'get',
		baseURL: process.env.VUE_APP_BASE_API_ZK
	})
}
// 根据业态获取产品线
export const exportReportApi = (data) => {
	return request({
		url: `${baseURL}/calculagte/twoControReportExport`,
		method: 'post',
		data,
		responseType:'blob'
	})
}